const path = require("path");

module.exports = {
    base: '/blog/',
    title: '谢荣生',
    description: '分享及储备web开发，全栈开发，自我提高的原创文章或好的摘抄文章',
    head: [
        ['link', {rel: 'icon', href: '/favicon.ico'}]
    ],
    dest: 'dist',
    cache: false,
    themeConfig: {
        dateFormat: 'YYYY-MM-DD',
        nav: [
            {
                text: '首页',
                link: '/',
                icon: 'fa-home'
            },
            {
                text: '归档',
                link: '/archives/',
                icon: 'fa-archive'
            },
            {
                text: '标签',
                link: '/tag/',
                icon: 'fa-user'
            },
            {
                text: '关于',
                link: '/about/',
                icon: 'fa-user'
            },
            {
                text: '项目',
                link: '/project/',
                icon: 'fa-folder-open'
            },
            {
                text: '相册',
                link: '/photo/',
                icon: 'fa-photo'
            },
        ],
        footer: {
            contact: [
                {
                    type: 'github',
                    link: 'https://github.com/x447618716',
                }
            ],
            copyright: [
                {
                    text: 'Privacy Policy',
                    link: 'https://policies.google.com/privacy?hl=en-US',
                },
                {
                    text: 'MIT Licensed | Copyright © 2018-present 谢荣生',
                },
            ],
        },
        directories: [
            {
                id: 'post',
                dirname: '_posts',
                path: '/',
                title: '首页',
                itemPermalink: '/:regular',
            }
        ],
        frontmatters: [
            {
                id: 'tag',
                title: '标签',
                keys: ['tag', 'tags'],
                path: '/tag/',
            },
            {
                id: 'archives',
                title: '归档',
                keys: ['date'],
                path: '/archives/',
            },
        ],
        globalPagination: {
            prevText: '上一页',
            nextText: '下一页',
            lengthPerPage: 5,
            layout: 'Pagination'
        },
        sitemap: {
            hostname: 'https://xierongsheng.gitee.io/blog/'
        },
        comment: {
            service: 'vssue', //disqus  vssue
            platform: 'gitee',
            locale: 'zh',
            owner: 'xierongsheng',
            repo: 'blog',
            clientId: '303b2e5c48c60826bbf2b10be64d98d4a5af22cb18f08f70d151a6d20dfb0deb',
            clientSecret: 'af1f25193cd87dc36f6bfbff0f0c7bf3e45467f40db57ad971bc12b003021363'
        },
        newsletter: {
            title: '通讯',
            content: '订阅以获取我的最新内容。没有垃圾邮件。',
            submitText: '订阅',
            endpoint: 'https://qq.us18.list-manage.com/subscribe/post?u=a6c9407a4fc7ecc1eaf18c2ad&amp;id=31b250e124&amp;f_id=004b1ae7f0'
        },
        feed: {
            canonical_base: 'https://xierongsheng.gitee.io/blog/',
            rss: true,
            atom: false,
            json: false
        },
        smoothScroll: true,

        logo: '/logo.jpg',
        lastUpdated: true,
        sidebar: 'auto',
        displayAllHeaders: true,
    },
    markdown: {
        lineNumber: true
    },
    configureWebpack: {
        resolve: {
            alias: {
                '@images': path.resolve(__dirname, './assets/images'),
                '@assets': path.resolve(__dirname, './assets')
            }
        }
    }
}
